package it.kion.util.ui.ulog2.decorators;

import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jface.viewers.*;
import it.kion.util.ui.ulog2.*;

public class Log4jDecorator implements ILightweightLabelDecorator
{
   public void decorate(Object element, IDecoration decoration)
   {
      if (element instanceof ICompilationUnit)
      {
         if (Log4jUtil.hasLogger((ICompilationUnit) element))
         {
            decoration.addOverlay(
               Log4jPlugin.getImageDescriptor(
                  Log4jPlugin.LOG_OVERLAY));
         }
      }
   }

   public void addListener(ILabelProviderListener listener)
   {
   }

   public void dispose()
   {
   }

   public boolean isLabelProperty(Object element, String property)
   {
      return false;
   }

   public void removeListener(ILabelProviderListener listener)
   {
   }
}
